<script type="text/javascript" src="/js/functions/categoryLogo.js"></script>
   <!-- Content Bar Header -->
      <?php
      //userQueries::userLevel("1");
      $auth = Auth::getAuth('current_user');
         if($auth['user_level_id']=="2"){
            echo $this->setInclude("contentHeader",null,null,null);
         }
      ?>
<div class="content_wrapper">
   <div class="padding_5">
      <div class="widget">
         
         <div class="head">
             <div class="title_head">
               Form Category
            </div>
            <div class="pull-right">
              <input type="button" class="btn-blueBtn addCategoryModal" value="Add Category" style="margin-top: 5px;margin-right: 16px;">
            </div>
         </div>
         <div class="tab_container">
            <table class="table_data display_data dataTable"  id="loadFormCategory" style="width:100%;">
              <thead>
                 <tr>
                    <th width="150">Category Name</th>
                    <th width="50">Action</th>
                 </tr>
              </thead>
              <tbody></tbody>
           </table>
            
         </div>
     </div>
   </div>
</div>
<?php
$search = new Search();

//get departments
$getAllDepartment = $search->getAllDepartment();
echo "<div class='departments display'>" . json_encode($getAllDepartment) . "</div>";

//get positions
$getPosition = $search->getAllPosition();
echo "<div class='positions display'>" . json_encode($getPosition) . "</div>";

//get users
$getUsers = $search->getAllUsers("");
echo "<div class='users display'>" . json_encode($getUsers) . "</div>";

//get available logo

echo "<div class='categoryLogo display'>".json_encode((upload::getAllfiles_fromDirectory("images/icon/app-logo")))."</div>";
?>